<?php
namespace app\admin\model;


use app\model\Base;

class Configs extends Base
{
    public function getValueAttr($value, $data)
    {
        $val = $value;
        if(in_array($data['id'], [215,216,217,218,219])){
//            $val = $this::$imageUrl . $value;
            $val = $this::getNewUrl() . $value;
        }
        return $val;
    }

    public function getKeyFormatAttr($value, $data)
    {
//        return ($this::$configKeyTitleArray)[$data['key']];
        return $data['description'];
    }
}